<form action="/${orgi}/design/query/renamecoldo/${reportid!''}/${modelid!''}.html" data-toggle="ajax-form" data-target="#design_table" method="post" id="renameForm">

<div class="artCon">
	<div class="middleArt">
		<div id="rename_big_div" class="artMain">
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span2"><h3>原标题：</h3></div>
				<input type="hidden" value="" id="oldname" name="oldname">
				<div id="old_title_div" style="padding-top: 10px;" class="span4"></div>
				<img title="清除重命名信息" onclick="clearRenameMsg()" align="middle" style="cursor: pointer;margin-top: 10px;" src="/assets/images/top_icon125.png">
			</div>
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span2"><h3>新标题：</h3></div>
				<div class="span8">
					<input type="text" value="" name="newname">
				</div>
			</div>
			
			
		</div>
		<div style="text-align: center;" class="bottomBg">
			<div class="btnWrap">
				<input type="button" onclick="submitRenameForm()" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</div>
</div>
</form>
<script>
	if(selColDataID&&selColDataID.attr('data-flag')&&selColDataID.attr('data-flag')=="measure"){
		$("#old_title_div").html(decodeURIComponent(selColDataID.attr("data-title")))
		$("#oldname").val(decodeURIComponent(selColDataID.attr("data-title")));
	}else{
		$("#rename_big_div").html("<div style=\"text-align: center;padding-top:30px;\">请选中要修改的指标列!</div>")
	}
	
	function submitRenameForm(){
		if(selColDataID&&selColDataID.attr('data-flag')&&selColDataID.attr('data-flag')=="measure"){
			$("#renameForm").submit();
		}else{
			closeR3ArtDialog();
		}
	}
	function clearRenameMsg(){
		$("#renameForm").attr("action","/${orgi}/design/query/clearename/${reportid!''}/${modelid!''}.html");
		$("#renameForm").submit();
	}
</script>